import ActionTypes from "../action";
import { goodsType } from "../types";
export default {
  // 商户列表
  [ActionTypes.ORDER_MANAGE]: [
    {
      label: "订单编号",
      prop: "orderId",
    },
    {
      label: "用户名称",
      prop: "contact",
    },
    {
      label: "用户电话",
      prop: "mobile",
    },
    {
      label: "订单金额",
      prop: "orderFee",
    },
    {
      label: "订单类型",
      prop: "orderType",
      formatter(_, value) {
        return goodsType[value] || value;
      },
    },
    {
      label: "订单状态",
      prop: "orderStatus",
      solt: true,
    },
    {
      label: "下单时间",
      prop: "gmtCreated",
    },
    {
      label: "服务时间",
      prop: "serviceTime",
    },
  ],
  [ActionTypes.COUPON_MANAGE]: [
    {
      label: "优惠券类型",
      prop: "fullMoney",
      formatter(data) {
        return `满${data.fullMoney}减${data.discounts}`;
      },
    },
    {
      label: "订单类型",
      prop: "orderType",
      formatter(_, value) {
        return goodsType[value] || value;
      },
    },
    {
      label: "订单金额",
      prop: "orderFee",
    },
    {
      label: "使用省份",
      prop: "provinceName",
    },
    {
      label: "使用城市",
      prop: "cityName",
    },
    {
      label: "产品类型",
      prop: "productName",
    },
    {
      label: "使用时间",
      prop: "gmtCreated",
    },
  ],
};
